package _7输入输出;

import java.util.Scanner;

public class InputDemo
{

	public static void main(String[] args)
	{
		
		// 创建接收用户输入的对象
		Scanner sc = new Scanner(System.in);
		
		
		System.out.println("请输入宽度:");
		int width = sc.nextInt();
		System.out.println("请输入高度");
		int height = sc.nextInt();
		
		int area = width*height;
		System.out.println("面积为"+area);
				
				
		float f1 = sc.nextFloat();
		double d1 = sc.nextDouble();
		boolean b1 = sc.nextBoolean();
		char c1 = sc.next().charAt(0);// 得到第一个字符
		String s1 = sc.next();
		
		System.out.println(f1);
		System.out.println(d1);
		System.out.println(b1);
		System.out.println(c1);
		System.out.println(s1);
	}

}
